<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:43:"./app/template/default/model/index_bbs.html";i:1627040370;s:53:"D:\wwwroot\127.0.0.5\app\template\default\header.html";i:1627040370;s:53:"D:\wwwroot\127.0.0.5\app\template\default\footer.html";i:1627040370;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title><?php echo $c['title']; ?> - <?php echo set('title'); ?></title>
    <meta name="keywords" content="<?php echo $c['keywords']; ?>">
    <meta name="description" content="<?php echo $c['description']; ?>">
        <meta name="referrer" content="never">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="<?php echo m(); ?>/css/style.css?v=0.57">
    <link rel="stylesheet" href="/public/css/default.css">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <script src="<?php echo m(); ?>/js/jquery.qrcode.min.js"></script>
    <script src="<?php echo m(); ?>/js/ajax-form.js?v0.09"></script>
    <!--预埋钩子-->
    <?php echo hook('indexheader'); ?>
</head>
<style>
@font-face {
  font-family: 'iconfont';  /* Project id 2675494 */
  src: url('//at.alicdn.com/t/font_2675494_xeh0qnvw1.woff2?t=1627015370316') format('woff2'),
       url('//at.alicdn.com/t/font_2675494_xeh0qnvw1.woff?t=1627015370316') format('woff'),
       url('//at.alicdn.com/t/font_2675494_xeh0qnvw1.ttf?t=1627015370316') format('truetype');
}
.iconfont{font-family:iconfont!important;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale;margin-right:5px}
</style>
<body>
    <!-- 顶部信息 s -->
    <div class="topInfo">
        <div class="content fn-clear">
            <?php echo set('titles'); ?>
            <ul class="menu topbarlink fn-clear">
                <li>	
                    <a href="/" style="color: #f60;"><i class="iconfont">&#xe613;</i> 网站首页</a>
                    <span class="separ">|</span>
                </li>
                <?php $_result=fun_s('link',array('wz'=>1,'open'=>1),'px desc',4,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li>
                    <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>><?php echo $vo['name']; ?></a>
                    <span class="separ">|</span>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; if(user('userid')): ?>
                <li class="dropdown user">	
                    <a href="<?php echo url('index/user/set'); ?>"><i class="iconfont">&#xe697;</i>  会员中心 </a>
                    <div class="submenu">	
                        <a href="<?php echo url('index/user/uid',array('id'=>user('userid'))); ?>" target="_blank"><i class="iconfont">&#xe697;</i> 个人主页</a>
                        <a href="<?php echo url('index/user/set'); ?>" target="_blank"><i class="iconfont">&#xe601;</i> 基本设置</a>		
                        <a href="<?php echo url('index/user/content'); ?>" target="_blank"><i class="iconfont">&#xe6fe;</i> 个人中心</a>
                        <a url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="del_t" href="https://ihuoniao.cn/u/security.html" target="_blank"><i class="iconfont">&#xe6b0;</i> 退出登录</a>
                    </div>
                </li>
                <?php else: ?>
                <li>	
                    <a href="<?php echo url('index/user/reg'); ?>"><i class="iconfont">&#xe63e;</i> 注册账户</a><span class="separ">|</span>
                </li>
                <li>	
                    <a href="<?php echo url('index/user/login'); ?>"><i class="iconfont">&#xe6b0;</i> 账户登录</a><span class="separ">|</span>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
 
    <!--顶部 s-->
    <div class="pannel-box ">
        <!--顶部搜索s-->
        <div class="top-box ">
            <div class="top">
                <div class="logo-img">
                    <img src="<?php echo set('logo'); ?>" alt="<?php echo set('title'); ?>">
                </div>
                <div class="logo-img">
                    <img src="/public/img/logof.png">
                </div>
                <div class="search-box">
                    <form method="get" action="<?php if($hover==$m): ?><?php echo url('index/model/soso',array('m'=>$m)); else: ?><?php echo url('index/index/soso'); endif; ?>" class="url">
                        <div class="label-box">
                            
                            <span <?php if($hover!=$m): ?>class="onlabel"<?php endif; ?> url="<?php echo url('index/index/soso'); ?>">文章搜索</span>
                            <?php $_result=fun_s('model',array('open'=>1),'px desc',10,false);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <span <?php if($hover==$vo['name']): ?>class="onlabel"<?php endif; ?> url="<?php echo url('index/model/soso',array('m'=>$vo['name'])); ?>"><?php echo $vo['title']; ?></span>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                            
                        </div>
                        <div class="search"><i></i>
                            <input placeholder="请输入你要搜索的关键字" name="ks" value="<?php echo input('ks'); ?>" />
                            <span class="sub-btn"><button type="submit">搜索</button></span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!--顶部搜索e-->
        <!--导航栏s-->
        <div class="nav-box">
            <ul class="nav">
                <li <?php if($hover=='index'): ?>class="onnav"<?php endif; ?>>
                    <a href="/">首页</a>
                </li>
                <li <?php if($hover=='cate'): ?>class="onnav"<?php endif; ?>>
                    <a href="<?php echo url('index/index/cate'); ?>">文章资讯</a>
                </li>
                <?php $_result=fun_s('model',array('open'=>1),'px desc',10,false);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li <?php if($hover==$vo['name']): ?>class="onnav"<?php endif; ?>>
                    <a href="<?php echo url('index/model/index',array('model'=>$vo['name'])); ?>"><?php echo $vo['title']; ?></a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?> 
            </ul>
        </div>
        <!--导航栏e-->
    </div>
    <div class="content-box">
        <div class="content">
            <div class="left-content">
                <!--幻灯片-->
                <div class="layui-carousel" id="hdp">
                    <div carousel-item>
                        <?php echo ad(3); ?>
                    </div>
                </div>
                <script>
                    layui.use('carousel', function() {
                        var carousel = layui.carousel;
                        //建造实例
                        carousel.render({
                            elem: '#hdp',
                            width: '100%',
                            height: '300px',
                            arrow: 'always'
                        });
                    });
                </script>             
                <!--分类-->
                <div class="sort-box mt-10">
                    <ul>
                        <li>
                            <a href="<?php echo url('index/model/index',array('model'=>$c['name'])); ?>" style="color: #5c99ff;">全部主题</a>
                        </li>
                        <?php $_60faaaaab4f97=fun_S('cate_m',array('tid'=>0,'m'=>$c['name'],'open'=>1,'header'=>1),'px desc','1000',1); if(is_array($_60faaaaab4f97) || $_60faaaaab4f97 instanceof \think\Collection || $_60faaaaab4f97 instanceof \think\Paginator): if( count($_60faaaaab4f97)==0 ) : echo "" ;else: foreach($_60faaaaab4f97 as $k=>$v): ?>
                        <li>
                            <a href="<?php echo url('index/model/cate',array('alias'=>$v['alias'])); ?>"><?php echo $v['name']; ?></a>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <!--社区论坛-->
                <div class="news-box">
                    <div class="news-content-box">
                        <?php $_result=fun_s($c['name'],array('open'=>1),'settop desc,times desc',15,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p><br>
                        </div>" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(getImgList($vo['content'],0)): ?>
                        <!-- 有图 -->
                        <?php if(getImgList($vo['content'],1)): ?>
                        <!-- 多图 -->
                        <div class="pics-news-box news-content">
                            <div class="pics-news">
                                <h3>
                                    <a target="_blank" href="<?php echo url('index/model/html',array('model'=>$vo['m'],'id'=>$vo['id'])); ?>">
                                        <span><?php echo $vo['title']; ?></span>
                                        <?php if($vo['settop']==1): ?>
                                        <div class="to-top">
                                            <i>置顶</i>
                                            <s class="bg1"></s>
                                            <s class="bg2"></s>
                                        </div>
                                        <?php endif; ?>
                                    </a>
                				</h3>
                                <ul class="pics-box">
                                    <?php $_result=getImgList($vo['content']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($_result) ? array_slice($_result,0,4, true) : $_result->slice(0,4, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                    <li>
                                        <a href="javascript:;">
                                            <img src="<?php echo $v; ?>" alt="<?php echo $vo['title']; ?>" />
                                        </a>
                                    </li>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                                <div class="news-info">
                                    <div class="left-info">	
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="<?php echo fun_u($vo['uid'], 'userhead'); ?>">
                                            </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="<?php echo url('index/user/uid',array('id'=>$vo['uid'])); ?>"><?php echo fun_u($vo['uid'], 'username'); ?></a></span>
                                        <span class="tieba-channel">[<?php echo fun_cate_m($vo['tid'], 'name'); ?>]</span>
                                        <span class="tiezi-time"><?php echo times($vo['time']); ?></span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span><?php echo $vo['view']; ?></span></li>
                                        <li><i></i><span><?php echo fun_st('comment', array('fid'=>$vo['id'],'m'=>$vo['m'])); ?></span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <?php else: ?>
                        <!-- 一张图 -->
                        <div class="pic-news-box news-content">
                            <div class="pic-box">
                                <img src="<?php echo pic($vo['content']); ?>" />
                            </div>
                            <div class="newscontent-box">
                                <h3>
                                    <a target="_blank" href="<?php echo url('index/model/html',array('model'=>$vo['m'],'id'=>$vo['id'])); ?>" target="_blank">
                                        <span><?php echo $vo['title']; ?></span>

                                    </a>
                                </h3>
                                <div class="news-info">
                                    <div class="left-info">
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="<?php echo fun_u($vo['uid'], 'userhead'); ?>">
                                            </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="<?php echo url('index/user/uid',array('id'=>$vo['uid'])); ?>"><?php echo fun_u($vo['uid'], 'username'); ?></a></span>
                                        <span class="tieba-channel">[<?php echo fun_cate_m($vo['tid'], 'name'); ?>]</span>
                                        <span class="tiezi-time"><?php echo times($vo['time']); ?></span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span><?php echo $vo['view']; ?></span></li>
                                        <li><i></i><span><?php echo fun_st('comment', array('fid'=>$vo['id'],'m'=>$vo['m'])); ?></span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <?php endif; else: ?>
                        <!--没有图-->
                        <div class="nopics-news-box news-content">
                            <div class="nopics-news">
                                <h3>
                                    <a target="_blank" href="<?php echo url('index/model/html',array('model'=>$vo['m'],'id'=>$vo['id'])); ?>">
                                        <span><?php echo $vo['title']; ?></span>
                                        <?php if($vo['settop']==1): ?>
                                        <div class="to-top">
                                            <i>置顶</i>
                                            <s class="bg1"></s>
                                            <s class="bg2"></s>
                                        </div>
                                        <?php endif; ?>
                                    </a>
                                </h3>
                                <div class="news-info">
                                    <div class="left-info">	
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="<?php echo fun_u($vo['uid'], 'userhead'); ?>">
                                            </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="<?php echo url('index/user/uid',array('id'=>$vo['uid'])); ?>"><?php echo fun_u($vo['uid'], 'username'); ?></a></span>
                                        <span class="tieba-channel">[<?php echo fun_cate_m($vo['tid'], 'name'); ?>]</span>
                                        <span class="tiezi-time"><?php echo times($vo['time']); ?></span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span><?php echo $vo['view']; ?></span></li>
                                        <li><i></i><span><?php echo fun_st('comment', array('fid'=>$vo['id'],'m'=>$vo['m'])); ?></span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <?php endif; endforeach; endif; else: echo "
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p><br>
                        </div>" ;endif; ?>
                    </div>
                    <div class="pagination">
                        <?php echo fun_s($c['name'],array('open'=>1),'times desc',15,0)->render(); ?>
                    </div>
                </div>
            </div>
            <!--左边内容e-->
            <!--右边内容s-->
            <div class="right-content">
                <!--签到 s-->
                <div class="sign-box">
                    <div class="sign-title">
                        <h3><i></i><span><?php echo dingyi($c['title'],set('title')); ?></span></h3>
                    </div>
                    <ul class="count-box">
                        <li>
                            <h3 id="todaynum"><?php echo fun_st('comment',array('open'=>1,'m'=>$c['name'])); ?></h3>
                            <p>回复数</p>
                        </li>
                        <li>
                            <h3 id="tiezinum"><?php echo fun_st($c['name'], array('open'=>1)); ?></h3>
                            <p>帖子数</p>	<i class="left-line"></i>
                            <i class="right-line"></i>
                        </li>
                        <li>
                            <h3 id="membernum"><?php echo fun_st('member', array('open'=>1)); ?></h3>
                            <p>注册用户</p>
                        </li>
                    </ul>
                    <div class="sign-tieba">
                        <div class="sign-button">
                            <button class="chufa" url="<?php echo url('qiandao/index/tijiao'); ?>">
                                <a href="javascript:;"><i></i><span>今日签到</span></a>
                            </button>
                        </div>
                        <?php if(sql_r('SHOW TABLES LIKE "my_qiandao"')): if(fun_tj('qiandao', 'stime', Date_k(0), 'stime',  Date_k(1), array('uid'=>user('userid')))): ?>
                            <div class="sign-count"><i></i><s id="qiandaonum">已签到+<?php echo fun_sc_p('qiandao', array('uid'=>user('userid')), 'score','stime desc'); ?><?php echo set('jifent',2); ?></s></div>
                            <?php else: ?>
                            <div class="sign-count"><i></i><s id="qiandaonum">未签到</s></div>
                            <?php endif; endif; ?>
                    </div>
                    <div class="out-tiezi">	<a target="_blank" href="<?php echo url('index/user/add'); ?>?model=<?php echo $c['name']; ?>">我要发帖</a>
                    </div>
                </div>
                <!--签到 e-->
                <!--热门话题s-->
                <div class="pub-style">
                    <div class="top-title hot-topic-title">热门话题</div>
                    <ul class="content-list topic-list">
                        <?php $_result=fun_s($c['name'],array('open'=>1),'view desc',8,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p><br>
                        </div>" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li>
                            <a href="<?php echo url('index/model/html',array('model'=>$vo['m'],'id'=>$vo['id'])); ?>">
                                <?php if(getImgList($vo['content'],0)): ?>
                                <div class="lImg">
                                    <img src="<?php echo getImgList($vo['content'],0); ?>" />
                                </div>
                                <?php endif; ?>
                                <div class="rContent">
                                    <h3><?php echo $vo['title']; ?></h3>
                                    <p><span>回复：<?php echo fun_st('comment', array('fid'=>$vo['id'])); ?></span><span>浏览：<?php echo $vo['view']; ?></span>
                                    </p>
                                </div>
                            </a>
                        </li>
                        <?php endforeach; endif; else: echo "
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p><br>
                        </div>" ;endif; ?>
                    </ul>
                </div>
                <!--热门话题e-->
                <!--活跃会员s-->
                <div class="pub-style">
                    <div class="top-title person-live-title">活跃会员</div>
                    <ul class="content-list activist-list">
                        <?php $_result=fun_s('member',array('open'=>1),'last_login_time desc',8,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li>
                            <li>
                            <a target="_blank" href="<?php echo url('index/user/uid',array('id'=>$vo['userid'])); ?>">
                                <div class="activist">
                                    <div class="lImg">
                                        <img src="<?php echo $vo['userhead']; ?>" />
                                    </div>
                                    <div class="rContent">
                                        <h3><?php echo $vo['username']; ?> </h3>
                                        <p>	<span>访问量：<?php echo $vo['view']; ?></span>
                                            <i>|</i>
                                            <span>发帖：<?php echo fun_st($c['name'], array('uid' => $vo['userid'])); ?></span>
                                        </p>
                                    </div>
                                    <div data-uid="8" class="concern-btn follow">
                                        <button>访问主页</button>
                                    </div>
                                </div>
                            </a>	
                            <span class="top1 listtop"><?php echo $i; ?></span>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <!--广告-->
                <div class="pub-style ">
                    <div class="top-title contact-us-title">赞助广告</div>
                    <div class="contact-us">
                        <div class="siteAdvObj">
                            <?php echo ad(4); ?>
                        </div>
                    </div>
                </div>
                <!--广告e-->
            </div>
            <div class="kong"></div>
        </div>
    </div>
        <div class="fudong-right-box">
        <ul class="fudong-right">
            <li>
                <a href="<?php echo url('index/user/add'); ?>">
                </a>
            </li>
            <li class="qrcode-box">
                <div class="qrcode"></div>
            </li>
            <li class="top-icon">
                <a href="javascript:;"></a>
            </li>
        </ul>
    </div>
    <script>
        $("#qrcode,.qrcode").qrcode({
    		render: window.applicationCache ? "canvas" : "table",
    		width: 74,
    		height: 74,
    		text: '<?php echo cms('ma'); ?>'
    	});
    </script>
    <div class="footer-box">
        <ul class="footer-text">
            <div class="serve">
                <h1>底部导航</h1>
                <?php $_result=fun_s('link',array('open'=>1,'wz'=>3),'px desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <p><a <?php if($vo['xin']==1): ?>target="_blank"<?php endif; ?> href="<?php echo $vo['lianjie']; ?>"><?php echo $vo['name']; ?></a></p>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <li>
                <p style="text-align: center;">Copyright ©2021 <a style="color: #bcb7b7;" href="//www.115cms.com" target="_blank"><?php echo config('web.name'); ?> V<?php echo config('web.banben'); ?></a>All Rights Reserved.
                </p>
                <p style="text-align: center;"><?php echo set('banquan'); ?><?php echo set('tongji'); ?>
                </p>
                <p style="text-align: center;"><a href="https://beian.miit.gov.cn" target="_blank"><?php echo set('icp'); ?></a>
                </p>
            </li>
        </ul>
    </div>
    <!--预埋钩子-->
    <?php echo hook('indexfooter'); ?>
</body>

</html>